package cn.levill.domain.strategy.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author Levill
 * @description 策略奖品实体
 * @date 2025/01/18 16:49
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StrategyAwardEntity {
    /**
     * 抽奖策略ID
     */
    private Long strategyId;
    /**
     * 抽奖奖品ID
     */
    private Integer awardId;
    /**
     * 奖品库存总量
     */
    private Long awardCount;
    /**
     * 奖品库存剩余
     */
    private Integer awardCountSurplus;
    /**
     * 奖品标题
     */
    private String awardTitle;
    /**
     * 奖品子标题
     */
    private String awardSubTitle;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 奖品中奖概率
     */
    private BigDecimal awardRate;
    /**
     * 规则模型，rule配置的模型同步到此表，便于使用
     */
    private String ruleModels;
}
